package com.tjsoft.system.entity.base;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.tjsoft.system.entity.IdEntity;
import com.tjsoft.system.util.MD5;

/**
 * 用户
 * @author Administrator
 *
 */
@Entity
@Table(name = "T_SYS_User")
public class User  extends IdEntity{
	


	@Column(unique = true)
	private String loginName;
	private String showName;
	private String password = "202CB962AC59075B964B07152D234B70";
	private String type = "low"; //3种权限：high可编辑、mid仅查看、low部分查看
	private String status = "Y"; //状态
	
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getShowName() {
		return showName;
	}
	public void setShowName(String showName) {
		this.showName = showName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getMD5Pwd(){
		return new MD5().getMD5ofStr(password);
	}
}
